ObjectDetectorHitNothing
The data provided by the object detector when it doesn't hit anything.
Distance
Will be greater than or equal to the ObjectDetector's MaxDistance configuration, note, there is a slight error in this value so it may be ~1e-3 less than it should be.
It is of the type number.
It is read-only, it cannot be assigned to.
isTerrain
Whether or not the hit object is terrain.
It is of the type true.
It is read-only, it cannot be assigned to.
Luau Type
This is the luau type for ObjectDetectorHitNothing. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).
export type ObjectDetectorHitNothing = {
read Distance: number,
read Name: never,
read Position: never,
read Color: never,
read isTerrain: true,
read CFrame: never,
read Size: never,
}